const app = {
    state: {
        sidebar: {
            opened: true
        },
    },

    mutations: {
        TOGGLE_SIDEBAR: state => {
            state.sidebar.opened = !state.sidebar.opened
        },
        setDefaultOpenMenu (state, defaultOpenMenu) {
            state.defaultOpenMenu = defaultOpenMenu;
        },
        setDefaultActiveMenu (state, defaultActiveMenu) {
            state.defaultActiveMenu = defaultActiveMenu;
        },
    },

    actions: {
        toggleSideBar({commit}) {
            commit('TOGGLE_SIDEBAR')
        }
    }
}

export default app
